package k2_oop.p7_javaLang.demo04;

import java.util.Random;

/**
 * 分别生成3个员工，测试构造方法的异常抛出。
 * 每个员工分别增加，减少工资，测试方法的异常。
 * 显示员工的人数和工资总额
 */
public class TestDemo4 {
    public static void main(String[] args) {

//        new Employee("1001",17,"tom",500,"1001");
//        new Employee("1001",65,"tom",500,"1001");
//        new Employee("1001",50,"",500,"1001");



//        Employee employee1 = new Employee("1001",30,"tom",1000,"1001");
//        Employee employee2 = new Employee("1002",40,"jerry",2000,"1002");
//        Employee employee3 = new Employee("1003",50,"kitty",3000,"1003");
//
//        employee1.addSalary(500);
//        Employee.showTotalSalary();
//        employee2.addSalary(4501);
//        employee2.minusSalary(1500);
//        Employee.showTotalSalary();

        Employee.showTotalEmployee();
    }
}
